import Layout from '../../layout'
import SubView from '../../layout/components/SubView'

let summaryRouter = {
  path: '/summary',
  component: Layout,
  name: 'Summary',
  meta: {
    title: '资料管理',
    icon: 'project-zlgl'
  },
  children: [
    {
      path: 'detectionManage',
      redirect: '/detectionManage/detection',
      name: 'DetectionManage',
      component: SubView,
      meta: {
        title: '项目验收'
      },
      children: [
        {
          path: 'detection',
          component: () => import('@/pages/project/views/summary/detectionManage/Detection.vue'),
          name: 'Detection',
          meta: { title: '检测', noCache: false }
        },
        {
          path: 'corrosionProtection',
          component: () => import('@/pages/project/views/summary/detectionManage/CorrosionProtection.vue'),
          name: 'CorrosionProtection',
          meta: { title: '防腐', noCache: false }
        },
        {
          path: 'backfill',
          component: () => import('@/pages/project/views/summary/detectionManage/Backfill.vue'),
          name: 'Backfill',
          meta: { title: '回填', noCache: false }
        }
      ]
    },
    {
      path: 'supplies',
      redirect: '/supplies/punchLists',
      name: 'Supplies',
      component: SubView,
      meta: {
        title: '物资准备'
      },
      children: [
        {
          path: 'punchLists',
          component: () => import('@/pages/project/views/summary/PunchLists.vue'),
          name: 'PunchLists',
          meta: { title: '整改单', noCache: false }
        },
        {
          path: 'inspectionSheet',
          component: () => import('@/pages/project/views/summary/InspectionSheet.vue'),
          name: 'InspectionSheet',
          meta: { title: '检验单', noCache: false }
        },
        {
          path: 'meetingMinutes',
          component: () => import('@/pages/project/views/summary/MeetingMinutes.vue'),
          name: 'MeetingMinutes',
          meta: { title: '会议纪要', noCache: false }
        }
      ]
    },

    {
      path: 'hotPlan',
      component: () => import('@/pages/project/views/summary/HotPlan.vue'),
      name: 'HotPlan',
      meta: { title: '动火方案', noCache: false }
    },
    // {
    //   path: 'constructionPlan',
    //   component: () => import('@/pages/project/views/summary/ConstructionPlan.vue'),
    //   name: 'ConstructionPlan',
    //   meta: { title: '施工方案', noCache: false }
    // },
    {
      path: 'hotTicket',
      component: () => import('@/pages/project/views/summary/hotTicket/index.vue'),
      name: 'HotTicket',
      meta: { title: '动火票发起', noCache: false }
    }
  ]
}

export default summaryRouter
